package controller;

import java.io.Serializable;
import java.util.List;

/**
 * this class prepare message to the handler of the actions of the client
 * @author Jose Luis Garcia && Alvaro Blazquez Checa
 *
 */
public class ClientMessage implements Serializable,Protocol{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ClientCommands command;
	private List<String> info;
	
	/**
	 * this will set a message command 
	 * @param command
	 */
	public ClientMessage(ClientCommands command){
		this.command=command;
	}
	
	/**
	 * this will get a message command 
	 */
	public ClientCommands getCommand(){
		return command;
	}
	
	/**
	 * this will return the list of info
	 * @return 
	 */
	public List<String> getInfo() {
		return info;
	}

	/**
	 * this will set the info to send
	 * @param info
	 */
	public void setInfo(List<String> info) {
		this.info = info;
	}

	@Override
	public void fillMessage() {
	}
	
}